<? Phpr_View::beginBlock("view") ?>
	<? if (!isset($fatalError)): ?>
		<ul class="breadcrumbs">
			<li><a href="<?= url('/blog/posts') ?>">Posts</a></li>
			<li><a href="<?= url('/blog/posts/preview/'.$form_model->post_id) ?>">Post</a></li>
			<li><?= $this->app_page_title ?></li>
		</ul>
	
		<div class="form600">
			<?= Phpr_Form::openTag(array('id'=>'form_element')) ?>
				<? $this->formRender() ?>

				<?= backend_ajax_button('Save', 'edit_onSave') ?>
				<?= backend_ajax_button('Cancel', 'edit_onCancel') ?>

				<div class="clear"></div>
			</form>
		</div>
	<? else: ?>
		<?= flash() ?>
		
		<p><a href="<?= url('/blog/posts') ?>">Return to the post list</a></p>
	<? endif ?>
<? Phpr_View::endBlock() ?>